#ifndef DBMSEDITOR_H
#define DBMSEDITOR_H
#include "dbmscontainer.h"

class DbmsEditor : public DbmsContainer
{
protected:
    virtual void data_to_form() = 0;
    virtual void form_to_data()=0;
    virtual void setup_connection() = 0;
    SLEE_HDB_REC mqh_data;
    bool    m_data_changed;
public:
    DbmsEditor();
    inline void set_data(const SLEE_HDB_REC &qh_data)
    {
        mqh_data = qh_data;
        data_to_form();
        setup_connection();
    }
    inline SLEE_HDB_REC get_data()
    {
        form_to_data();
        return mqh_data;
    }
    inline bool is_changed() {return m_data_changed;}
   public slots:
// /  void data_changed();
};

#endif // DBMSEDITOR_H
